package com.dhecp.project.hr.service;

import com.dhecp.common.core.domain.AjaxResult;
import com.dhecp.project.hr.domain.OperateCompanyRatio;
import com.dhecp.project.hr.domain.OperateCompanyRoute;

import java.util.List;
import java.util.Map;

public interface OperateCompanyRouteService {


    /**
     * 查询
     * @param params
     * @return List - OperateCompanyApply
     * @throws Exception
     * @author DH-Xxj
     */
    List<OperateCompanyRoute> queryList(Map<String, Object> params) throws Exception;

    OperateCompanyRoute findByGuid(Map<String, Object> params) throws Exception;
    
    OperateCompanyRoute findByShortName(String shortName);

    OperateCompanyRatio findByRatioGuid(Map<String, Object> params) throws Exception;

//    OperateCompanyRatio ratioTop1(Map<String, Object> params);

    /**
     *@Description: 运营比例修改
     *@Param: moduleTable 必要参数：功能唯一标识
     *@Param: infoMap 必要参数：非网格字段（包括头部、底部所有显示和隐藏的字段）
     *@Param: infoItems 必要参数：对应实体类的json格式字符串
     *@return: com.dhecp.common.core.domain.AjaxResult
     *@Author: hlf
     *@date: 2022-05-09 9:41
     */
    AjaxResult ratioSave(Map<String, Object> params);


    /**
     *@Description: 保存
     *@Param: moduleTable 必要参数：功能唯一标识
     *@Param: infoMap 必要参数：非网格字段（包括头部、底部所有显示和隐藏的字段）
     *@Param: infoItems 必要参数：对应实体类的json格式字符串
     *@return: com.dhecp.common.core.domain.AjaxResult
     *@Author: hlf
     *@date: 2022-05-09 9:41
     */
    AjaxResult saveData(Map<String, Object> params);

}
